public class Test1 extends Thread implements Runnable {
    public void run() {
        System.out.println("this is run()");
    }

    public static void main(String[] args) {
        Thread t = new Thread();
        t.start();
    }
}